% TEST_ID: LANG-EXPAND-0018
% CATEGORY: language/array-ops/slice
% 测试 cell 数组的索引行为

function test_cell_slice
    B = {1,2;3,reshape(1:24, 2,3,4)};
    
    assert(isequal({B{1:2}}, {1, 3}))
    assert(isequal(B{4}(2:3), [2 3]))
    assert(isequal(B{4}(:), reshape(1:24, [], 1)))
    assert(isequal(B{4}([1;3;5]), [1;3;5]))

end